﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Threading;

using SGGWElevator.Controllers;

namespace SGGWElevator
{
    /// <summary>
    /// Interaction logic for ElevatorsWindow.xaml
    /// </summary>
    public partial class ElevatorsWindow : Window
    {
        public ElevatorsWindow()
        {
            InitializeComponent();

            // Attaching Elevators to controllers

            var defaultFloor = Floor.Lobby;

            ElevatorEngine engine1 = new ElevatorEngine(0.0003, ElevatorEngine.GetFloorPosition(defaultFloor));
            ElevatorEngine engine2 = new ElevatorEngine(0.7, ElevatorEngine.GetFloorPosition(defaultFloor));
            ElevatorEngine engine3 = new ElevatorEngine(0.7, ElevatorEngine.GetFloorPosition(defaultFloor));

            ElevatorController _personElevator1_Controller = new ElevatorController(PersonElevator1, engine1, defaultFloor);
            ElevatorController _personElevator2_Controller = new ElevatorController(PersonElevator2, engine2, defaultFloor);
            ElevatorController _baggageElevator1_Controller = new ElevatorController(BaggageElevator1, engine3, defaultFloor);

        }
    }
}
